package cn.shafish.dubbo.xml.providerxml.service;

import cn.shafish.serviceapi.dto.UserDTO;
import cn.shafish.serviceapi.service.UserRpcService;
import org.springframework.stereotype.Service;

@Service
public class UserRpcServiceImpl implements UserRpcService {
    @Override
    public UserDTO getUser(Integer id) {
        return new UserDTO()
                .setId(id)
                .setName("shafish-xml"+id)
                .setGender(0);
    }
}
